Skip to content

BDMS-81 fix: correct GCS_SERVICE_ACCOUNT_KEY echo syntax and update relationship in Thing model#104

Closed
jirhiker wants to merge 1 commit into
pre-productionfrom
bdms-81
Closed

BDMS-81 fix: correct GCS_SERVICE_ACCOUNT_KEY echo syntax and update relationship in Thing model#104
jirhiker wants to merge 1 commit into
pre-productionfrom
bdms-81

Conversation

@jirhiker

@jirhiker jirhiker commented Aug 25, 2025

Copy link
Copy Markdown
Member

Why

This PR addresses the following problem / context:

  • Github action that deploys staging version does not set the GCS_SERVICE_ACCOUNT_KEY correctly

How

Implementation summary - the following was changed / added / removed:

  • Use bullet points here

Notes

Any special considerations, workarounds, or follow-up work to note?

  • Use bullet points here

@jirhiker jirhiker changed the title fix: correct GCS_SERVICE_ACCOUNT_KEY echo syntax and update relationship in Thing model BDMS-81 fix: correct GCS_SERVICE_ACCOUNT_KEY echo syntax and update relationship in Thing model Aug 25, 2025
@codecov-commenter

codecov-commenter commented Aug 25, 2025

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

Files with missing lines Coverage Δ
db/thing.py 100.00% <100.00%> (ø)
schemas/thing.py 97.97% <100.00%> (+0.02%) ⬆️

echo " CLOUD_SQL_USER: \"${{ secrets.CLOUD_SQL_USER }}\"" >> app.yaml
echo " CLOUD_SQL_PASSWORD: \"${{ secrets.CLOUD_SQL_PASSWORD }}\"" >> app.yaml
echo " GCS_SERVICE_ACCOUNT_KEY: \"${{ secrets.GCS_SERVICE_ACCOUNT_KEY}}\"" >> app.yaml
echo " GCS_SERVICE_ACCOUNT_KEY: ${{ secrets.GCS_SERVICE_ACCOUNT_KEY }} >> app.yaml

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Closing quotes should be present at the end of the line that is being echoed and then redirected to app.yaml

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suspect this is part of the problem. Since the service key is JSON that uses double quotes

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For echo to work I think that the full string needs to be in double quotes, but the escaped quotes in the inner bit should be removed if they're causing issues

 echo "  GCS_SERVICE_ACCOUNT_KEY: ${{ secrets.GCS_SERVICE_ACCOUNT_KEY }}" >> app.yaml

@jirhiker jirhiker closed this Aug 26, 2025
@jirhiker jirhiker deleted the bdms-81 branch December 3, 2025 04:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants